package com.ruoyi.exam.mapper;

import com.ruoyi.exam.domain.ExamScores;
import com.ruoyi.exam.domain.Scores;
import com.ruoyi.exam.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ScoresMapper {

    void insertScores(Scores scores);

    void updateScores(Scores scores);

    List<Scores> listScores(ScoresVO reqVO);

    List<ScoresCourseVO> selectScoresCourseList(ScoresCourseVO scoresCourseVO);

    List<ScoresCourseTypeVO> selectScoresCourseTypeList(ScoresCourseTypeVO scoresCourseTypeVO);

    List<ScoresTheoryVO> selectScoresTheoryList(ScoresTheoryVO scoresTheoryVO);

    List<ScoresRealVO> selectScoresRealList(ScoresRealVO scoresRealVO);

    int deleteCourseStudent(@Param("userId") Long userId,@Param("courseNo") Long courseNo);

    int deleteScoresTheory(@Param("userId") Long userId,@Param("paperId") Long paperId);

}
